package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;

@Getter
@Setter
public class FormalStudentChartsQueryObject extends QueryObject{
    //已付总款
    private BigDecimal AlreadyPay;
    //未付总款
    private BigDecimal UnPaid;

    private String keyword;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    private String groupBy = "fst.payment_type";

    public static final Map<String, String> groupTypes = new LinkedHashMap<>();

    static {
        groupTypes.put("fst.status", "学员状态");
        groupTypes.put("fst.payment_type", "付款方式");
    }


}
